package com.gitee.sliu.binlog5j.springboot.starter;

import com.gitee.sliu.binlog5j.core.BinlogClientConfig;
import com.gitee.sliu.binlog5j.core.config.RedisConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "spring.binlog4j")
@Data
public class Binlog5jAutoProperties {

    private boolean enable = true;

    private Map<String, BinlogClientConfig> clientConfigs;

    @NestedConfigurationProperty
    private RedisConfig redisConfig;

}
